package models

import db2 "meituan/db"

// Resouces 允许请求的API接口
type Resouces struct {
	Name string `gorm:"type:varchar(60)"`
	Code string `gorm:"type:varchar(60)"`
}

// TableName 设置允许请求的API接口表名称
func (user Resouces) TableName() string {
	return "resources"
}

func init() {
	db, _ := db2.NewDB()
	defer db.Close()
	db.AutoMigrate(new(Resouces))
}
